<?php
namespace Admin\Controller;
use Think\Controller;
class GoodsController extends Controller {
	private $goods='';
	public function __construct(){
		parent::__construct();
		$this->goods=D('Goods');
	}
	public  function goodsAdd(){
		if(IS_POST){
			
			$res=$this->goods->goodsAdd($_POST);
		}
		$this->display();
	}
	
	public  function goodsList(){
		//var_dump($this->goods->getGoods());
		$this->assign('goodslist',$this->goods->getGoods());
		$this->display();
	}

}
